# 酒巢登录接口 对象层
import requests


class JCLoginApi(object):
    @classmethod
    def login(cls, req_json):
        resp = requests.post(url="http://116.62.53.189:48080/app-api/member/auth/login",
                             headers={"Content-Type": "application/json", "Tenant-Id": "1", "Terminal": "20"},
                             json=req_json)
        return resp


if __name__ == '__main__':
    # 准备请求体数据
    data = {"mobile": "19811796705", "password": "jxz123456!@#", "category": "0"}
    res = JCLoginApi.login(data)
    print("登录成功:", res.json())
